<?php
declare (strict_types=1);

namespace app\time\controller;

use app\common\tool\Result;
use think\Response;
use app\common\model\User as UserModel;

class User
{
    /**
     * 每天凌晨00:30执行
     * 盟主考核
     */
    public function leaderCheck() :Response
    {
        return Result::fastReturn(UserModel::leaderCheck());
    }

    /**
     * 每分钟执行
     * 会员到期未续约降级
     */
    public function demotion() :Response
    {
        return Result::fastReturn(UserModel::demotion());
    }

}